package com.freesky.biz.activity.service.impl;

import com.freesky.biz.activity.domain.TRpaTask;
import com.freesky.biz.activity.domain.TSmsCode;
import com.freesky.biz.activity.mapper.RpaTaskMapper;
import com.freesky.biz.activity.mapper.SmsCodeMapper;
import com.freesky.biz.activity.service.IRpaTaskService;
import com.freesky.biz.activity.service.ISmsCodeService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class RpaTaskServiceImpl implements IRpaTaskService {

    @Autowired
    private RpaTaskMapper rpaTaskMapper;

    @Override
    public List<TRpaTask> selectRpaTaskList(String mchId,Integer leftCount,String intervalTime) {
        return rpaTaskMapper.selectRpaTaskList(mchId,leftCount,intervalTime);
    }

    @Override
    public Integer selectCountProcessed(String mchId,String intervalTime) {
        return rpaTaskMapper.selectCountProcessed(mchId,intervalTime);
    }

    @Override
    public Integer selectUnProcessedCount(String mchId) {
        return rpaTaskMapper.selectUnProcessedCount(mchId);
    }

    @Override
    public int updateRpaTaskProcessed(String stockId) {
        return rpaTaskMapper.updateRpaTaskProcessed(stockId);
    }

    @Override
    public int updateRpaTaskFinished(String stockId,String fileName,String startTime) {
        return rpaTaskMapper.updateRpaTaskFinished(stockId,fileName,startTime);
    }
}
